﻿using Common;
using Domain.DbContext;
using IBll;

namespace Bll
{
    /// <summary>
    /// 测试服务
    /// </summary>
    public class TestBll : ITestBll
    {
        public ModelContainer CurrentDbContext { get; set; }

        /// <summary>
        /// 获取测试字符串
        /// </summary>
        /// <param name="testId"></param>
        /// <returns></returns>
        public string GetTestStr(string testId)
        {
            return CurrentDbContext.Tests.Find(testId).ToJson();
        }
    }
}
